#include <stdio.h>

#define N 10
int main()
{
	int i, data[N] = {1, 2, 3, 2, 2, 2, 5, 4, 2, 3};
	int ret, times;

	for (i = 0; i < N; i++) {
		if (times == 0)
			ret = data[i];
		if (ret == data[i])
			times ++;
		else
			times --;
	}

	return ret;
}

